package regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegexMatches {
    public static void main(String[] args) {
        String str = "[\u4e00-\u9fa5a-zA-z0-9]{1,10}";

        Pattern pattern = Pattern.compile(str);
        Matcher matcher = pattern.matcher("_123啊ab");
        System.out.println("matcher = " + matcher.matches());
    }
}
